package com.java.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * @author jingjintao
 * @date 2021/10/27 - 22:38
 **/
@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)  //链式变成
public class Book {
    private int id;
    private String name;
    private double salary;

    public static void main(String[] args) {
        Book book = new Book();
        book.setId(1);
        book.setName("zs");
        book.setSalary(45);

        Book book1 = new Book();
        book1.setId(2).setName("li").setSalary(12);
        System.out.println(book);
        System.out.println(book1);
    }
}
